package com.example.user.mapper;

import com.example.user.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface UserMapper {

    Long insert(@Param("user") User user);

    List<User> getAll();

    User findById(Long id);

    Integer updateById(User user);

    Integer deleteById(Long id);

    Integer deleteByIds(@Param("ids") List<Long> ids);
}